package org.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO
 * @author wangdpng
 * @date 2023/12/6 13:14
 */
@RestController
@RefreshScope
@RequestMapping(value = "/api")
public class ProductController {

    @Value("${msg}")
    private String msg;
    @GetMapping(value = "/product")
    public String product() {
        return "this is product service ."+"msg:  "+ msg;
    }
}
